package ventanas;


import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.BorderLayout;
import java.awt.Panel;
import java.awt.Button;
import javax.swing.JSeparator;

public class VentanaPrincipal extends JFrame{
	public VentanaPrincipal() {
		setTitle("Principal");
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{47, 100, 0, 100, 0, 100, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 60, 60, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		
		JButton btnCajero = new JButton("Cajero");
		GridBagConstraints gbc_btnCajero = new GridBagConstraints();
		gbc_btnCajero.insets = new Insets(0, 0, 5, 5);
		gbc_btnCajero.fill = GridBagConstraints.BOTH;
		gbc_btnCajero.gridx = 1;
		gbc_btnCajero.gridy = 2;
		getContentPane().add(btnCajero, gbc_btnCajero);
		
		JButton btnPiu = new JButton("PIU");
		GridBagConstraints gbc_btnPiu = new GridBagConstraints();
		gbc_btnPiu.fill = GridBagConstraints.BOTH;
		gbc_btnPiu.insets = new Insets(0, 0, 5, 0);
		gbc_btnPiu.gridx = 5;
		gbc_btnPiu.gridy = 2;
		getContentPane().add(btnPiu, gbc_btnPiu);
		
		JButton btnCompra = new JButton("Compra");
		GridBagConstraints gbc_btnCompra = new GridBagConstraints();
		gbc_btnCompra.insets = new Insets(0, 0, 5, 5);
		gbc_btnCompra.fill = GridBagConstraints.BOTH;
		gbc_btnCompra.gridx = 3;
		gbc_btnCompra.gridy = 3;
		getContentPane().add(btnCompra, gbc_btnCompra);
		
		JButton btnAtrs = new JButton("Atr\u00E1s");
		GridBagConstraints gbc_btnAtrs = new GridBagConstraints();
		gbc_btnAtrs.anchor = GridBagConstraints.EAST;
		gbc_btnAtrs.insets = new Insets(0, 0, 0, 5);
		gbc_btnAtrs.gridx = 1;
		gbc_btnAtrs.gridy = 5;
		getContentPane().add(btnAtrs, gbc_btnAtrs);
		
		JButton btnSalir = new JButton("Salir");
		GridBagConstraints gbc_btnSalir = new GridBagConstraints();
		gbc_btnSalir.anchor = GridBagConstraints.WEST;
		gbc_btnSalir.gridx = 5;
		gbc_btnSalir.gridy = 5;
		getContentPane().add(btnSalir, gbc_btnSalir);
		
		
				
		
		
		
	}

}

